package org.jsola.hr.helper;

import com.alibaba.fastjson.JSON;
import org.jsola.hr.dto.AttendPunchDTO;
import org.jsola.hr.query.AttendPunchCheckQuery;
import org.springframework.stereotype.Component;

/**
 *
 */
@Component
public class AttendPunchTestHelper extends BaseTestHelper {

    /**
     *
     * @return
     */
    public AttendPunchCheckQuery getAttendPunchCheckQuery() {

        AttendPunchCheckQuery attendPunchCheckQuery = new AttendPunchCheckQuery();
        attendPunchCheckQuery.setLongitude("");
        attendPunchCheckQuery.setLatitude("");
        attendPunchCheckQuery.setWifiName("");
        attendPunchCheckQuery.setMacAddr("");

        return attendPunchCheckQuery;
    }

    public AttendPunchDTO getAttendPunch() {

        AttendPunchDTO attendPunchDTO = new AttendPunchDTO();

        attendPunchDTO.setLatitude("40.010055");
        attendPunchDTO.setWifiName("");
        attendPunchDTO.setMacAddr("");
        attendPunchDTO.setPunchNumber("");

        return attendPunchDTO;
    }


    public static void main(String[] args) {

        AttendPunchDTO attendPunchDTO = new AttendPunchDTO();

        attendPunchDTO.setLongitude("116.644009");
        attendPunchDTO.setLatitude("40.010055");
        attendPunchDTO.setWifiName("");
        attendPunchDTO.setMacAddr("");
        attendPunchDTO.setPunchNumber("");

        System.out.println(JSON.toJSONString(attendPunchDTO));
    }




}
